package cn.pupil.design;

import cn.pupil.design.service.MinibusTargetService;

import java.util.Date;

/**
 * @Description: 摇号服务实现
 * @Author: pupil
 * @Date: 2024/07/30 下午 6:46
 */
public class LotteryServiceImpl extends LotteryService{

    private MinibusTargetService minibusTargetService = new MinibusTargetService();


    @Override
    protected LotteryResult doDraw(String uId) {
        // 摇号
        String lottery = minibusTargetService.lottery(uId);
        // 结果
        return new LotteryResult(uId,lottery,new Date());
    }
}
